package easy;

import java.util.Arrays;

public class Solution_1502 {

    public boolean canMakeArithmeticProgression(int[] arr) {
        Arrays.sort(arr);
        for (int i = 2; i < arr.length; i++) {
            if ((arr[i] - arr[i - 1]) != (arr[i - 1] - arr[i - 2])) {
                return false;
            }
        }
        return true;
    }

    public static void main(String[] args) {
        Solution_1502 model = new Solution_1502();
    }
}
